< previous page page_640 next page >

Page 640
0640-01.jpg
Figure 17.32
Environment mapping three pictures onto RayMappedCheckerboard objects.
point that should be black, however, it sets the object's transmission coefficients to 1.0, making the object perfectly transparent.
Figure 17.33 shows a sphere and a RayHoledCheckerboard object mapped with an image of some text. The image is black except where the text lies, so it is mostly transparent.
This technique produces some interesting results, but it has a major drawback. Most notably, the entire checkerboard object shadows other objects. If the light sources in Figure 17.33 were adjusted so the checkerboard shadowed the sphere, you would see a rectangular shadow, not one shaped like the text.
One way to fix this problem would be to modify the object's FindT function so that it, too, considered the image when determining whether a ray intersected the checkerboard. Then it would shadow other objects only where it was actually drawn.
0640-02.jpg
Figure 17.33
Using an image map to determine transparency.

 
< previous page page_640 next page >